﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'GetCargosByCargoSuperiorID')
	BEGIN
		DROP  Procedure  GetCargosByCargoSuperiorID
	END

GO

CREATE Procedure GetCargosByCargoSuperiorID

	(
		@idCargoSuperior int
	)

AS

BEGIN
	SET NOCOUNT ON
	
	SELECT
	[Descripcion],
	[IdArea],
	[IdCargo],
	[IdCargoSuperior],
	[Nombre]
	FROM [Cargo] 
	WHERE [IdCargoSuperior] = @idCargoSuperior

	SET NOCOUNT OFF
END

GO


GRANT EXEC ON GetCargosByCargoSuperiorID TO PUBLIC

GO


